fix: module builder rebuild class mistype foreignkey so delete them (#39480)
* fix: module builder rebuild class mistype foreignkey so delete them * fix: module builder rebuild class mistype foreignkey so delete them
This commit is contained in:
parent
5028dae981
commit
a1bfd5d9fb
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ function rebuildObjectClass($destdir, $module, $objectname, $newmask, $readdir =
|
|||
$texttoinsert .= ' "index" => "'.(int) $val['index'].'",';
|
||||
}
|
||||
if (!empty($val['foreignkey'])) {
|
||||
$texttoinsert .= ' "foreignkey" => "'.(int) $val['foreignkey'].'",';
|
||||
$texttoinsert .= ' "foreignkey" => "'.dol_escape_php($val['foreignkey']).'",';
|
||||
}
|
||||
if (!empty($val['searchall'])) {
|
||||
$texttoinsert .= ' "searchall" => "'.(int) $val['searchall'].'",';
|
||||
|
|
|
|||
Loading…
Reference in a new issue