@@ -366,7 +366,7 @@ private function getNullifyCodeForNullColumn(
366366 * @param string $onChangeClause onchange clause for fields
367367 * @param string $specialCharsEncoded replaced char if the string starts
368368 * with a \r\n pair (0x0d0a) add an extra \n
369- * @param string $dataType the html5 data-* attribute type
369+ * @param TypeClass $dataType the html5 data-* attribute type
370370 *
371371 * @return string an html snippet
372372 */
@@ -376,7 +376,7 @@ private function getTextarea(
376376 string $ columnNameAppendix ,
377377 string $ onChangeClause ,
378378 string $ specialCharsEncoded ,
379- string $ dataType ,
379+ TypeClass $ dataType ,
380380 ): string {
381381 $ theClass = '' ;
382382 $ textAreaRows = $ this ->config ->settings ['TextareaRows ' ];
@@ -407,7 +407,7 @@ private function getTextarea(
407407 . ' id="field_ ' . $ this ->fieldIndex . '_3" '
408408 . ($ onChangeClause !== '' ? ' onchange=" ' . htmlspecialchars ($ onChangeClause , ENT_COMPAT ) . '" ' : '' )
409409 . ' tabindex=" ' . $ this ->fieldIndex . '" '
410- . ' data-type=" ' . $ dataType . '"> '
410+ . ' data-type=" ' . $ dataType-> value . '"> '
411411 . $ specialCharsEncoded
412412 . '</textarea> ' ;
413413 }
@@ -578,7 +578,7 @@ private function getValueColumnForOtherDatatypes(
578578 $ specialChars ,
579579 $ fieldsize ,
580580 $ onChangeClause ,
581- $ dataType ,
581+ $ dataType-> value ,
582582 );
583583 }
584584
@@ -1705,7 +1705,7 @@ private function getHtmlForInsertEditFormColumn(
17051705
17061706 $ columnValue = '' ;
17071707 $ foreignDropdown = '' ;
1708- $ dataType = '' ;
1708+ $ dataType = TypeClass::Unknown ;
17091709 $ textAreaRows = $ this ->config ->settings ['TextareaRows ' ];
17101710 $ textareaCols = $ this ->config ->settings ['TextareaCols ' ];
17111711 $ maxlength = '' ;
@@ -1823,7 +1823,7 @@ private function getHtmlForInsertEditFormColumn(
18231823 'data ' => $ data ,
18241824 'gis_data_types ' => Gis::getDataTypes (),
18251825 'foreign_dropdown ' => $ foreignDropdown ,
1826- 'data_type ' => $ dataType ,
1826+ 'data_type ' => $ dataType-> value ,
18271827 'textarea_cols ' => $ textareaCols ,
18281828 'textarea_rows ' => $ textAreaRows ,
18291829 'max_length ' => $ maxlength ,
0 commit comments