Welcome, Guest
Username: Password: Remember me

TOPIC: [ANSWERED] WHERE ARE ENUMERATION LIST VALUES STORED?

[ANSWERED] WHERE ARE ENUMERATION LIST VALUES STORED? 15 Nov 2013 13:59 #11616

  • jcombuilder
  • jcombuilder's Avatar
  • Offline
  • Junior Member
  • Posts: 21
  • Thank you received: 4
  • Karma: 1
Hello All,
I have noticed a strange behaviour today, which could simply be something I am not doing correctly.

I have a Joomla 3 Component build, with many Tables, and some Tables have a Field Type : enumeration

If I add more than one element to the enumeration List the values after the first are not generated in the SQL file (install.mysql.utf8.sql).

For the Admin :)
My Project SimpleCRM. Table: People , Field: Type

The List elements are clearly visible in my project however they are not, apparently generated in the SQL file.

Your kind assistance is much appreciated.

Edward.
I'mmm Back!
Last Edit: 15 Nov 2013 21:33 by jcombuilder. Reason: Solved
The administrator has disabled public write access.

[ANSWERED] WHERE ARE ENUMERATION LIST VALUES STORED? 15 Nov 2013 17:36 #11617

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
I can't be sure because it's been a long time since I used an enumeration field and it would have been pre Cook V2 but, I seem to recall the enumeration field options being stored in a var (maybe static) in some helper??? Unsure, but hope it helps nonetheless!

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.
The following user(s) said Thank You: jcombuilder

[ANSWERED] WHERE ARE ENUMERATION LIST VALUES STORED? 15 Nov 2013 21:31 #11633

  • jcombuilder
  • jcombuilder's Avatar
  • Offline
  • Junior Member
  • Posts: 21
  • Thank you received: 4
  • Karma: 1
Thank you Gez,

Yes, there they are in helper.php nicely located under the comment .. "Prepare the enumerated static lists".
/component/admin/helpers/helper.php
- for future reference.

Ah, we live and learn (hopefully).

Edward.
I'mmm Back!
The administrator has disabled public write access.

[ANSWERED] WHERE ARE ENUMERATION LIST VALUES STORED? 15 Nov 2013 21:41 #11634

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
Cool!

Can't really believe that I remembered that seriously!!! :woohoo: It's been at least a year since I would have got in there to edit any options manually.

Well, glad it helped.

Gez

**N.B. Changed topic title to: WHERE ARE ENUMERATION LIST VALUES STORED?
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!
The administrator has disabled public write access.
The following user(s) said Thank You: admin, jcombuilder
Time to create page: 0.066 seconds

Get Started