diff --git a/composer.json b/composer.json index 3945a452b..eb9735090 100644 --- a/composer.json +++ b/composer.json @@ -35,10 +35,10 @@ "laravel/framework": "5.7.*", "luracast/restler": "3.0", "bshaffer/oauth2-server-php": "v1.0", - "colosa/pmui": "release/3.7.3-dev", - "colosa/michelangelofe": "release/3.7.3-dev", - "colosa/pmdynaform": "release/3.7.3-dev", - "colosa/taskscheduler": "release/1.0.2-dev", + "colosa/pmui": "release/3.7.4-dev", + "colosa/michelangelofe": "release/3.7.4-dev", + "colosa/pmdynaform": "release/3.7.4-dev", + "colosa/taskscheduler": "release/1.0.3-dev", "google/apiclient": "1.1.6", "dapphp/securimage": "^3.6", "psr/log": "1.0.0", diff --git a/gulliver/system/class.bootstrap.php b/gulliver/system/class.bootstrap.php index c33a86317..ecb9ed15b 100644 --- a/gulliver/system/class.bootstrap.php +++ b/gulliver/system/class.bootstrap.php @@ -2633,7 +2633,7 @@ class Bootstrap $langServer = $locale['LOCALE']; $language = explode('-', $langServer); $language = head($language); - if ($language === $acceptLanguage) { + if ($language === $acceptLanguage || $langServer === $acceptLanguage) { $inLang = true; break; } diff --git a/gulliver/system/class.rbac.php b/gulliver/system/class.rbac.php index 4f916a778..80c77856d 100644 --- a/gulliver/system/class.rbac.php +++ b/gulliver/system/class.rbac.php @@ -2150,4 +2150,16 @@ class RBAC { return self::GUEST_USER_UID === $usrUid; } + + /** + * Returns true in case the parameter corresponds to the admin user, + * otherwise it returns false. + * + * @param string $usrUid + * @return boolean + */ + public static function isAdminUserUid($usrUid) + { + return self::ADMIN_USER_UID === $usrUid; + } } diff --git a/resources/assets/js/admin/settings/customCaseList/Tables.vue b/resources/assets/js/admin/settings/customCaseList/Tables.vue index a22fe8d6e..4eb911a2f 100644 --- a/resources/assets/js/admin/settings/customCaseList/Tables.vue +++ b/resources/assets/js/admin/settings/customCaseList/Tables.vue @@ -277,6 +277,13 @@ export default { if (this.showEllipsis) { this.dataEllipsis = { buttons: { + note: { + name: "edit", + icon: "far fa-edit", + fn: function() { + that.editCustomCaseList(data); + } + }, open: { name: "delete", icon: "far fa-trash-alt", @@ -285,13 +292,6 @@ export default { that.showModalDelete(data); } }, - note: { - name: "edit", - icon: "far fa-edit", - fn: function() { - that.editCustomCaseList(data); - } - }, reassign: { name: "download", icon: "fas fa-arrow-circle-down", diff --git a/resources/assets/js/home/CustomCaseList/CustomCaseList.vue b/resources/assets/js/home/CustomCaseList/CustomCaseList.vue index bb9e625fe..57da6f242 100644 --- a/resources/assets/js/home/CustomCaseList/CustomCaseList.vue +++ b/resources/assets/js/home/CustomCaseList/CustomCaseList.vue @@ -802,7 +802,7 @@ export default { if (that.availableItems[that.itemMap[item.field]]) { newItems.push(that.availableItems[that.itemMap[item.field]]); } else { - product = this.filterItemFactory(item) + product = this.filterItemFactory(item); if (product) { newItems.push(product); } @@ -837,9 +837,9 @@ export default { filterItemFactory(item) { let product; if (item.type === "DATETIME") { - product= {...this.customItems["DATETIME"]}; + product= _.cloneDeep(this.customItems["DATETIME"]); } else { - product = {...this.customItems["VARCHAR"]}; + product = _.cloneDeep(this.customItems["VARCHAR"]); } product.title += " " + item.name; product.id = item.field; diff --git a/tests/CreateTestSite.php b/tests/CreateTestSite.php index a53520e45..447e60dd5 100644 --- a/tests/CreateTestSite.php +++ b/tests/CreateTestSite.php @@ -7,6 +7,14 @@ trait CreateTestSite public function createDBFile(string $workspace) { + if (!file_exists(PATH_TRUNK . 'shared')) { + mkdir(PATH_TRUNK . 'shared'); + } + + if (!file_exists(PATH_TRUNK . 'shared/sites')) { + mkdir(PATH_TRUNK . 'shared/sites'); + } + if (!file_exists(PATH_DB . $workspace)) { mkdir(PATH_DB . $workspace); } @@ -14,20 +22,20 @@ trait CreateTestSite if (!file_exists(PATH_DB . $workspace . PATH_SEP . "db.php")) { $myfile = fopen(PATH_DB . $workspace . PATH_SEP . "db.php", "w"); $content = "" - . " +
+