Welcome, Guest
Username: Password: Remember me

TOPIC: INFO : Enum Changes

INFO : Enum Changes 22 Nov 2016 14:43 #14716

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 16
For those of you, who like me use EXPLODED forms, you may have noticed that any view forks just exploded with enum helper errors if you built a component using 3.0.8

If you did, just find / replace on your forks with the following
YourComponentHelper::enumList('

is replaced by
YourComponentHelperEnum::_('

and you are good to go after uploading
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.

INFO : Enum Changes 22 Nov 2016 14:47 #14718

  • MorganL
  • MorganL's Avatar
  • Offline
  • Platinum Member
  • Posts: 438
  • Thank you received: 53
  • Karma: 16
Unfortutaly that is only half the job..

You then have to replace all the entries in brackets as well...

i.e
('films', 'mpaa'),

becomes
('films_mpaa'),
Morgan Leecy MCSE

Novell / Linux
PHP. MYSQL, Apache, node.js
Coldfusion, JQuery, HTML5
Joomla
The administrator has disabled public write access.
The following user(s) said Thank You: admin, vlemos

INFO : Enum Changes 23 Nov 2016 15:02 #14731

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
It should still works because of the legacy proxy in helper.
Don't it ?

K++
Coding is now a piece of cake
The administrator has disabled public write access.

INFO : Enum Changes 23 Nov 2016 15:07 #14732

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
Normally, the list is loaded automatically if you use the enum type in XML form.
specify the parameters :
type="enum"
enum="films_mpaa"

Then you can remove the call to the helper because the list is automatically loaded. No need to feed the list in the code everytime.

EDIT : "Condensed" or "Exploded" should not change anything.
Just remove the helper call from your forks otherwise it will override the list.
Coding is now a piece of cake
Last Edit: 23 Nov 2016 15:09 by admin.
The administrator has disabled public write access.
Time to create page: 0.093 seconds

Get Started