mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
#11592 resize item label VC
This commit is contained in:
parent
779f9b93dc
commit
6ac8425ea3
@ -1865,6 +1865,10 @@ class Item extends CachedModel
|
||||
|
||||
$save = array_merge($dataModelEncode, $dataEncode);
|
||||
|
||||
if (!empty($save['label'])) {
|
||||
$save['label'] = io_safe_output(io_safe_input(str_replace("'", "\'", $save['label'])));
|
||||
}
|
||||
|
||||
$result = \db_process_sql_update(
|
||||
'tlayout_data',
|
||||
$save,
|
||||
|
@ -90,11 +90,11 @@ final class Label extends Item
|
||||
|
||||
// Default values.
|
||||
if (isset($values['width']) === false) {
|
||||
$values['width'] = 10;
|
||||
$values['width'] = 50;
|
||||
}
|
||||
|
||||
if (isset($values['height']) === false) {
|
||||
$values['height'] = 10;
|
||||
$values['height'] = 50;
|
||||
}
|
||||
|
||||
return $values;
|
||||
|
Loading…
x
Reference in New Issue
Block a user