Skip to content

Commit

Permalink
fix bug Module Builder creates invalid SQL when using chkbxlst #31545… (
Browse files Browse the repository at this point in the history
#31923)

* fix bug Module Builder creates invalid SQL when using chkbxlst #31545 in #31545

* Update modulebuilder.lib.php

---------

Co-authored-by: abb <[email protected]>
Co-authored-by: Laurent Destailleur <[email protected]>
  • Loading branch information
3 people authored Nov 15, 2024
1 parent 4b45a2a commit 2cc0202
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions htdocs/core/lib/modulebuilder.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ function rebuildObjectSql($destdir, $module, $objectname, $newmask, $readdir = '
$type = 'double'; // html modulebuilder type is a text type in database
} elseif (in_array($type, array('link', 'sellist', 'duration'))) {
$type = 'integer';
} elseif ($type == 'chkbxlst') {
$type = 'varchar(128)';
} elseif ($type == 'mail') {
$type = 'varchar(128)';
} elseif (strpos($type, 'stars(') === 0) {
Expand Down

0 comments on commit 2cc0202

Please sign in to comment.