Skip to content

Commit 9a4703e

Browse files
committedNov 1, 2011
Set the HTTP status correctly via the new API.
1 parent 38d35e2 commit 9a4703e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/WebGUI/Asset/Wobject/Thingy.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -3012,7 +3012,7 @@ sub www_editThingDataSaveViaAjax {
30123012
return JSON->new->encode({message => $i18n->get("has entered max per user message")});
30133013
}
30143014
if($thingDataId eq 'new' && $self->hasEnteredMaxEntries($thingId)){
3015-
$session->http->setStatus("400", "Bad Request");
3015+
$session->response->status("400");
30163016
return JSON->new->encode({message => $i18n->get("has entered max total message")});
30173017
}
30183018

0 commit comments

Comments
 (0)