[TikiWiki-commits] [Git][tikiwiki/tiki][master] [ENH][UX] Tiki Contacts: improve the feedback message

"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69c3216a326a_3c4b58ac255fe@gitlab-sidekiq-low-urgency-cpu-bound-v2-574ffdb9df-j752w.mail>

ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
4518f602 by Grace Nshokano at 2026-03-24T23:34:33+00:00
[ENH][UX] Tiki Contacts: improve the feedback message
---
* [FIX] tiki contact edit success message

See merge request tikiwiki/tiki!8903

- - - - -


1 changed file:

- tiki-contacts.php


Changes:

=====================================
tiki-contacts.php
=====================================
@@ -103,7 +103,11 @@ if (isset($_REQUEST["save"])) {
         Feedback::error($feedback);
     } else {
         $contactlib->replace_contact($_REQUEST["contactId"], $_REQUEST["firstName"], $_REQUEST["lastName"], $_REQUEST["email"], $_REQUEST["nickname"], $user, $_REQUEST['groups'] ?? [], $ext_result);
-        $feedback = sprintf(tra('Contact %s was created.'), $_REQUEST['firstName']);
+        if ($_REQUEST["contactId"]) {
+            $feedback = tr('Contact for %0 %1 was edited.', $_REQUEST['firstName'], $_REQUEST['lastName']);
+        } else {
+            $feedback = tr('Contact for %0 %1 was created.', $_REQUEST['firstName'], $_REQUEST['lastName']);
+        }
         Feedback::success($feedback);
         $info["firstName"] = '';
         $info["lastName"] = '';



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/4518f602816ee13bc64760c02686432b8d56a6cb

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/4518f602816ee13bc64760c02686432b8d56a6cb
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.