Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Possible Bug- user_link_validation

Quote Reply
Possible Bug- user_link_validation
Hi:

My database has no use for URL's- we do not link anywhere. But, as the field URL is so integral to making Links work, we use that field, albiet for something else. We use it for dates, actually.

Anyway, I set "user_link_validation" to NO, and am testing the Add.html page. I keep getting this error:

URL can not contain the value '1941-01-01'

So something is not working right I think. That is, if I am understanding this right.

I do need to make sure that there are no validation routines on URL... or, a validastion routine that is for YYYY-MM-DD

Adrian, Bao, if you need to log onto my system, just let me know!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Possible Bug- user_link_validation In reply to
Did you remember to remove the regex on the URL column?

Adrian
Quote Reply
Re: [brewt] Possible Bug- user_link_validation In reply to
Yes sir, I did!
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Possible Bug- user_link_validation In reply to
I was just thinking- I went away from the loop thing on include_form.html to the basic, original code I used in Links 2---

Like this:

<tr><td align="right" valign="top">Release Date: &nbsp;</td>
<td>&nbsp;<input name="URL" size="50"<%if URL%> value="<%URL%>"<%endif%>><br />

Would that cause the problem?

dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Possible Bug- user_link_validation In reply to
It shouldn't be causing any problems. However, I think it's better to just create a new column for the date instead of using the URL column.

Adrian
Quote Reply
Re: [brewt] Possible Bug- user_link_validation In reply to
OK, I copied URL to "Add_Date" for tests... then I get a "URL cannot be blank." Cool. I added to the form:

<input name="URL" value="http://" type="hidden" />

and I get: URL can not contain the value 'http://'
dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Possible Bug- user_link_validation In reply to
Check your def file because you will not get that error unless you have a regex on the column.

Adrian
Quote Reply
Re: [brewt] Possible Bug- user_link_validation In reply to
'URL' => {
'file_max_size' => '',
'file_save_in' => '',
'file_save_scheme' => 'HASHED',
'file_save_url' => '',
'form_display' => 'URL',
'form_size' => '20',
'form_type' => 'TEXT',
'not_null' => '1',
'pos' => '3',
'regex' => '',
'type' => 'MEDIUMINT',
'unsigned' => '1',
'weight' => '1'
},

dave

Big Cartoon DataBase
Big Comic Book DataBase
Quote Reply
Re: [carfac] Possible Bug- user_link_validation In reply to
Quote:
'type' => 'MEDIUMINT',
There's your problem. You somehow changed the URL column into a MEDIUMINT. You can't store a string in an int column, thus the error.

Adrian
Quote Reply
Re: [brewt] Possible Bug- user_link_validation In reply to
Adrian:

Sorry for making you chase your tail TWICE in 5 minutes! Thanks! Blush
dave

Big Cartoon DataBase
Big Comic Book DataBase