1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Correzioni minori su riferimenti di DDT

This commit is contained in:
Dasc3er
2020-10-16 17:23:44 +02:00
parent afba33b63e
commit 6dd0cb90bf
3 changed files with 23 additions and 21 deletions

View File

@@ -17,6 +17,8 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
use HTMLBuilder\HTMLBuilder;
include_once __DIR__.'/../core.php';
// Compatibilità per controller ed editor
@@ -176,10 +178,10 @@ if (!empty($type) && $type != 'menu' && $type != 'custom') {
foreach ($bulk as $key => $value) {
$text = is_array($value) ? $value['text'] : $value;
$data = is_array($value['data']) ? $value['data'] : [];
$data = isset($value['data']) && is_array($value['data']) ? $value['data'] : [];
$extra = [];
foreach ($data as $k => $v) {
$extra[] = 'data-'.$k.'="'.prepareToField(\HTMLBuilder\HTMLBuilder::replace($v)).'"';
$extra[] = 'data-'.$k.'="'.prepareToField(HTMLBuilder::replace($v)).'"';
}
echo '