Login!
Register as a new user Lost password?
 

MODx Bug/Feature Tracker and Feature Requests

Welcome to the MODx CMS Tracker. Please choose the appropriate project from the drop down menu and provide as much information as possible regarding your server environment and browser. Thanks!

FS#449 — Error when using "id" for field name in a module

Attached to Project — MODx
Opened by Guillaume (Yogui33) - Wednesday, 28 June 2006, 11:41AM
Last edited by Jason Coward (opengeek) - Wednesday, 21 November 2007, 10:43AM
Task Type Bug Report
Category Core Distribution
Status Implemented
Assigned To Jason Coward (opengeek)
Operating System All
Severity High
Priority Normal
Reported Version 0.9.2/0.9.2.1
Due in Version 0.9.7-beta
Due Date Undecided
Percent Complete 80%

Details

Hi !

An error occured when I try to validate a form in a module : "no record found for id 0". This message is display with a javascript box.

This error occured when I use a form wich contains a field named "id" and the field "id" is empty.
It is the same thing if the value is a number different from an identifier (id) of a module. The message in this case is for example "no record found for id 8".

The problem comes from the name of the module id. If this id was id_module (for example), the error doesn't occure.

It is really annoying when we work on the "id" property for a htlm tag.

Thanks.
This task depends upon

This task blocks these from closing
Comment by Ryan Thrash (rthrash) - Sunday, 13 August 2006, 04:40PM
"id" is currently a reserved word for MODx as a system. This will have to be fixed in a later release.

Comment by Jason Coward (opengeek) - Wednesday, 21 November 2007, 10:43AM
  • Field changed: Status (Unconfirmed → Implemented)
  • Field changed: Due in Version (1.0 → 0.9.7-beta)
  • Field changed: Percent Complete (0% → 80%)
  • Task assigned to Jason Coward (opengeek)
Please see related task FS#377 for details on how this is addressed in the 0.9.7 branch.