Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
[Error] Failed to update item if no content was updated.
  • Hello everyone,
    my problem is the following, I'm having a weird error: http://scrp.at/aOf, fired every time I try to update an item, without actually updating the content, in other words directly pressing submit without updating anything. Here is my controller:
    http://scrp.at/aOg Using 1.1/master Here is an image of what I mean:
    Original: http://dl.dropbox.com/u/14170232/Pantallazo-76.png
    Error: http://dl.dropbox.com/u/14170232/Pantallazo-77.png Hope to hear from you guys soon.
  • I would recomend you to go ahead and change it yourself, for the fuel developers this is standard. Thou, it should throw a warning and not an error.
  • That's normal. If nothing is updated, and you try to save the same record, you get an error.
    IMO, You can either check if nothing is updated and just continue or maybe disable the save button until a change is done.
  • The problem is that I'm using default scaffold code, also I already figured out a solution, planning on submitting it. Edit:
    This issue has been fixed for 1.1/develop, so there is no need for submission.
  • Has this been updated? It's still throwing an error when I try to update with no changes. I don't see why this would ever return an error as it would only serve to confuse a normal user as every other software out there works in this manner. Let me know what your solution is or if there's something specific I need to update so that I can get this working.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion