Hello!
I'm not sure is this a bug or am I doing something wrong?
I have the "Area" field in the table for links. Here is how it is defined:
==========================================
Root: /public_html/cgi-bin/admin/defs > glinks_Links.def
==========================================
'file_max_size' => '',
'file_save_in' => '',
'file_save_scheme' => 'HASHED',
'file_save_url' => '',
'form_display' => 'Area',
'form_size' => '10',
'form_type' => 'TEXT',
'not_null' => '0',
'pos' => '58',
'regex' => '',
'type' => 'INT',
'weight' => ''
},
So, "INT" and it is not mandatory. When the link is sent with the "Area" field empty, registration goes without any problems. But, ... When a user attempts to modify it here's what he/she gets:
The same link can easily be changed through the admin interface. I enclose the rest of the data:
==========================================
include_form.html
==========================================
<label for="Area" class="name">Area m<sup>2</sup>:</label>
<div class="value">
<input type="text" id="Area" name="Area" value="<%if Area%><%escape_html Area%><%endif%>" class="text" />
</div>
</div>
==========================================
HTML (modify.cgi)
==========================================
<label for="Area" class="name">Area m<sup>2</sup>:</label>
<div class="value">
<input type="text" id="Area" name="Area" value="" class="text" />
</div>
</div>
Does anybody know what is happening? Big thanks in advance ;)
I'm not sure is this a bug or am I doing something wrong?
I have the "Area" field in the table for links. Here is how it is defined:
==========================================
Root: /public_html/cgi-bin/admin/defs > glinks_Links.def
==========================================
Code:
'Area' => { 'file_max_size' => '',
'file_save_in' => '',
'file_save_scheme' => 'HASHED',
'file_save_url' => '',
'form_display' => 'Area',
'form_size' => '10',
'form_type' => 'TEXT',
'not_null' => '0',
'pos' => '58',
'regex' => '',
'type' => 'INT',
'weight' => ''
},
So, "INT" and it is not mandatory. When the link is sent with the "Area" field empty, registration goes without any problems. But, ... When a user attempts to modify it here's what he/she gets:
Quote:
Area cannot contain the value ''The same link can easily be changed through the admin interface. I enclose the rest of the data:
==========================================
include_form.html
==========================================
Code:
<div class="row clear"> <label for="Area" class="name">Area m<sup>2</sup>:</label>
<div class="value">
<input type="text" id="Area" name="Area" value="<%if Area%><%escape_html Area%><%endif%>" class="text" />
</div>
</div>
==========================================
HTML (modify.cgi)
==========================================
Code:
<div class="row clear"> <label for="Area" class="name">Area m<sup>2</sup>:</label>
<div class="value">
<input type="text" id="Area" name="Area" value="" class="text" />
</div>
</div>
Does anybody know what is happening? Big thanks in advance ;)