Fix modifica per i plugin

This commit is contained in:
Thomas Zilio 2018-09-06 10:23:54 +02:00
parent 8771f81728
commit dd7f5e790f
2 changed files with 7 additions and 1 deletions

View File

@ -168,7 +168,9 @@ if ($element->permission == 'rw') {
// Esecuzione delle operazioni di gruppo
$id_records = post('id_records');
$id_records = is_array($id_records) ? $id_records : explode(';', $id_records);
$id_records = array_filter($id_records, function ($var) {return !empty($var); });
$id_records = array_filter($id_records, function ($var) {
return !empty($var);
});
$id_records = array_unique($id_records);
$bulk = App::filepath($directory.'|custom|', 'bulk.php');

View File

@ -85,6 +85,10 @@ class Plugin extends Model
*/
public function getCustomEditFile()
{
if (empty($this->script)) {
return;
}
return $this->getAddFile();
}