(Guillermo) Create path /ticket/create X

This commit is contained in:
AntonyAntonio 2016-06-21 02:00:31 -03:00
parent 839265e852
commit 8253577cc3

View File

@ -31,16 +31,16 @@ class CreateController extends Controller {
private function validateData() {
if (strlen($this->title) < 3) {
Response::respondError(ERRORS::SHORT_TITLE);
return ERRORS::SHORT_TITLE;
}
if (strlen($this->title) > 30) {
Response::respondError(ERRORS::LONG_TITLE);
return ERRORS::LONG_TITLE;
}
if (strlen($this->content) < 5) {
Response::respondError(ERRORS::SHORT_CONTENT);
return ERRORS::SHORT_CONTENT;
}
if (strlen($this->content) > 500) {
Response::respondError(ERRORS::LONG_CONTENT);
return ERRORS::LONG_CONTENT;
}
return true;