Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Save draft when no changes


Go to End


1209 Views

Avatar
xmedeko

Community Member, 94 Posts

6 June 2007 at 3:46pm

Edited: 06/06/2007 3:46pm

Hi,
I am debugging AJAX communication in Firefox with Firebug AddOn.

I go to editing page, Reports tab, and press 'Save draft' more times. If there's nothing to save, i.e., no changes, then there's nothing in the POST data, but the response is:

<div style="border: 5px red solid">
<p style="color: white; background-color: red; margin: 0">FATAL ERROR: DataObject::get_by_id passed a
non-numeric ID #<br />
At line 1200 in /var/www/xebidy/sapphire/core/model/DataObject.php<br />
<br />
</p>
<p><b>user_error(DataObject::get_by_id passed a non-numeric ID #,512)</b>
<br />
user_error at line 1200 of DataObject.php</p>
...

I see big green leters "Saved", though.