mirror of
https://git.victorphan.net/basketballcantho/Teedy_custom.git
synced 2026-08-05 22:03:11 +07:00
Tag colors (client)
This commit is contained in:
@@ -110,7 +110,7 @@ public class TagResource extends BaseResource {
|
||||
|
||||
// Validate input data
|
||||
name = ValidationUtil.validateLength(name, "name", 1, 36, false);
|
||||
color = ValidationUtil.validateLength(color, "color", 6, 6, false);
|
||||
ValidationUtil.validateHexColor(color, "color", true);
|
||||
|
||||
// Get the tag
|
||||
TagDao tagDao = new TagDao();
|
||||
@@ -151,7 +151,7 @@ public class TagResource extends BaseResource {
|
||||
|
||||
// Validate input data
|
||||
name = ValidationUtil.validateLength(name, "name", 1, 36, true);
|
||||
color = ValidationUtil.validateLength(color, "color", 6, 6, true);
|
||||
ValidationUtil.validateHexColor(color, "color", true);
|
||||
|
||||
// Get the tag
|
||||
TagDao tagDao = new TagDao();
|
||||
|
||||
Reference in New Issue
Block a user