[TikiWiki-commits] [Git][tikiwiki/tiki][28.x] [BP][FIX] Articles: Add feedback messages when saving new article type
"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <68fba5a1cbf54_2c21446e44419f@gitlab-sidekiq-low-urgency-cpu-bound-v2-854849f664-86sxd.mail> |
ushindi bienvenu pushed to branch 28.x at Tiki Wiki CMS Groupware / Tiki
Commits:
cc4e0e67 by Alain Cisirika at 2025-10-24T16:06:04+00:00
[BP][FIX] Articles: Add feedback messages when saving new article type
---
* [FIX] Articles: Add feedback messages when saving new article type
---
* [FIX] Add feedback message when an article type is added and when the user try to submit without filling the field
See merge request tikiwiki/tiki!8003
See merge request tikiwiki/tiki!8410
- - - - -
1 changed file:
- tiki-article_types.php
Changes:
=====================================
tiki-article_types.php
=====================================
@@ -50,8 +50,11 @@ $access->check_feature('feature_articles');
$access->check_permission(['tiki_p_articles_admin_types']);
if (isset($_REQUEST["add_type"])) {
- if (! empty($_REQUEST["new_type"])) {
+ if (empty($_REQUEST["new_type"])) {
+ Feedback::error(tra('The article type field can not be empty'));
+ } else {
$artlib->add_type($_REQUEST["new_type"]);
+ Feedback::success(tra('Article type saved successfully'));
}
} elseif (isset($_REQUEST["remove_type"])) {
$access->checkCsrf();
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/cc4e0e6739cfc3f2be9ac525bfcaa9dc896f2322
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/cc4e0e6739cfc3f2be9ac525bfcaa9dc896f2322
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs