Fix modifica per i plugin
This commit is contained in:
parent
8771f81728
commit
dd7f5e790f
|
@ -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');
|
||||
|
|
|
@ -85,6 +85,10 @@ class Plugin extends Model
|
|||
*/
|
||||
public function getCustomEditFile()
|
||||
{
|
||||
if (empty($this->script)) {
|
||||
return;
|
||||
}
|
||||
|
||||
return $this->getAddFile();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue