Levertine

Please login or register.

Author Topic: Custom field phantom value  (Read 2132 times)

TheDDude

  • Newbie
  • *
  • Posts: 21
  • Somebody familiar

Custom field phantom value
« on: February 20, 2015, 05:00:34 AM »
When I enter 0 as a value for a custom field, it doesn't save.
The dream is dangerous.

Arantor

  • Levertine Developer
  • Full Member
  • *
  • Posts: 248

Re: Custom field phantom value
« Reply #1 on: February 22, 2015, 06:04:32 PM »
What type of field?

TheDDude

  • Newbie
  • *
  • Posts: 21
  • Somebody familiar

Re: Custom field phantom value
« Reply #2 on: February 24, 2015, 12:59:12 AM »
text
The dream is dangerous.

Arantor

  • Levertine Developer
  • Full Member
  • *
  • Posts: 248

Re: Custom field phantom value
« Reply #3 on: February 28, 2015, 01:55:01 PM »
Just like SMF's profile fields then... hmm, not sure if there's actually a good way around that. Sure the field shouldn't be numeric?

TheDDude

  • Newbie
  • *
  • Posts: 21
  • Somebody familiar

Re: Custom field phantom value
« Reply #4 on: March 04, 2015, 11:09:34 PM »
It must be numeric- it ties items to membergroup IDs - 0 indicates accessed to all.
The dream is dangerous.

Arantor

  • Levertine Developer
  • Full Member
  • *
  • Posts: 248

Re: Custom field phantom value
« Reply #5 on: March 05, 2015, 09:48:36 PM »
So why are you using a text field instead of a numeric field? LevGal has an integer field which should support 0 :P

TheDDude

  • Newbie
  • *
  • Posts: 21
  • Somebody familiar

Re: Custom field phantom value
« Reply #6 on: March 06, 2015, 01:14:27 AM »
Because it won't let me?

So I set the type of the field to `integer` in the database and now it won't save.
The dream is dangerous.
 

SMF 2.0.9 | SMF © 2014, Simple Machines
BlueLight design by Bloc