Skip to content
Permalink
Browse files

Set the HTTP status correctly via the new API.

  • Loading branch information...
perlDreamer committed Nov 1, 2011
1 parent 38d35e2 commit 9a4703eca0c1b5ca87a5733fa5c63130b8b6efcb
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/WebGUI/Asset/Wobject/Thingy.pm
@@ -3012,7 +3012,7 @@ sub www_editThingDataSaveViaAjax {
return JSON->new->encode({message => $i18n->get("has entered max per user message")});
}
if($thingDataId eq 'new' && $self->hasEnteredMaxEntries($thingId)){
$session->http->setStatus("400", "Bad Request");
$session->response->status("400");
return JSON->new->encode({message => $i18n->get("has entered max total message")});
}

0 comments on commit 9a4703e

Please sign in to comment.
You can’t perform that action at this time.