Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] JDOM: Label for radio input field

JDOM: Label for radio input field 05 Sep 2013 13:08 #10998

  • Tomaselli
  • Tomaselli's Avatar
  • Offline
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
Hi,
I noticed a little conflict when more radio fields with the same name (but different group) are in the same form.
example:
jform[mygroup1][published]

and
jform[mygroup2][published]

they are different but the labels are generated with the same name, and this cause a bug.

quick and dirty solution (as usual :) ):
the line 110 on \dom\html\form\input\radio.php :
$id = $this->dataKey . '_' . $i;

should be:
$id = "<%DOM_ID%>_" . $i;
Last Edit: 05 Sep 2013 13:09 by Tomaselli.
The administrator has disabled public write access.
The following user(s) said Thank You: admin

JDOM: Label for radio input field 05 Sep 2013 13:39 #11003

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Better now ?
Coding is now a piece of cake
The administrator has disabled public write access.

JDOM: Label for radio input field 05 Sep 2013 13:39 #11004

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Not dirty at all.

Thanks. K++
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: Tomaselli

JDOM: Label for radio input field 06 Sep 2013 08:24 #11011

  • Tomaselli
  • Tomaselli's Avatar
  • Offline
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
thanks for the fix.
The administrator has disabled public write access.
Time to create page: 0.057 seconds

Get Started