Opened 15 years ago

Closed 15 years ago

#473 closed defect (fixed)

undefined default GUI values

Reported by: kmq Owned by: astrid_emde
Priority: trivial Milestone: 2.6 release
Component: user interface Version: 2.6 rc1
Keywords: Cc:

Description

When defining a new GUI element in source:/trunk/mapbender/http/php/mod_editElements.php, leaving the "On/OFF" or "Position" fields empty, causes the the following error message when saving:

"sql error: ERROR: invalid input syntax for integer: "" ROLLBACK performed."

That is an undesirable outcome, as it leaves no clue as to what actually went wrong.

Proposed fix: Give default values to $e_pos and $e_public.

Change History (3)

comment:1 by astrid_emde, 15 years ago

Owner: changed from dev to astrid_emde
Status: newassigned

comment:2 by astrid_emde, 15 years ago

I fixed this bug

  • default values: e_pos 2 and e_public 1

in the script:

		if($e_pos == ''){$e_pos = 2;}
		if($e_public == ''){$e_public = 1;}	

Have a look at revision 4075

comment:3 by astrid_emde, 15 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.