This is an automated email from the ASF dual-hosted git repository.
jfthomps pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/vcl.git
The following commit(s) were added to refs/heads/develop by this push:
new 6008d212 siteconfig.php: modified
TimeVariable->AJaddAffiliationSetting: added btn to data returned in AJAX error
when invalid $affilid passed in
6008d212 is described below
commit 6008d21282836f87a09b4663a7ce5f443ba10157
Author: Josh Thompson <[email protected]>
AuthorDate: Thu Feb 29 15:41:32 2024 -0500
siteconfig.php: modified TimeVariable->AJaddAffiliationSetting: added btn
to data returned in AJAX error when invalid $affilid passed in
---
web/.ht-inc/siteconfig.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/.ht-inc/siteconfig.php b/web/.ht-inc/siteconfig.php
index e299c051..f77f3fe3 100644
--- a/web/.ht-inc/siteconfig.php
+++ b/web/.ht-inc/siteconfig.php
@@ -423,7 +423,8 @@ class TimeVariable {
if(! array_key_exists($affilid, $affils)) {
$arr = array('status' => 'failed',
'msgid' => "{$this->domidbase}msg",
- 'errmsg' => i('Invalid affiliation
submitted.'));
+ 'errmsg' => i('Invalid affiliation
submitted.'),
+ 'btn' => "{$this->domidbase}addbtn");
sendJSON($arr);
return;
}