Skip to content

Commit 06a17ab

Browse files
committed
update to 2.4.15
1 parent eee962a commit 06a17ab

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Ubiquity/controllers/admin/UbiquityMyAdminBaseController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class UbiquityMyAdminBaseController extends Controller implements HasModelViewer
145145
]
146146
];
147147

148-
public const version = '2.4.14+';
148+
public const version = '2.4.15';
149149

150150
public $style;
151151

src/Ubiquity/controllers/admin/traits/CreateControllersTrait.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
namespace Ubiquity\controllers\admin\traits;
33

44
use Ajax\semantic\html\collections\form\HtmlForm;
5+
use Composer\Autoload\ClassLoader;
56
use Ubiquity\utils\http\URequest;
67
use Ubiquity\controllers\Startup;
78
use Ubiquity\cache\CacheManager;
@@ -170,7 +171,8 @@ public function _frmAddAuthController() {
170171
$viewList->setDefaultText("Select views");
171172
$viewList->addClass('fluid ' . $this->style);
172173
$authControllers = CacheManager::getControllers("Ubiquity\\controllers\\auth\\AuthController", false, true);
173-
$authControllers = array_combine($authControllers, $authControllers);
174+
\array_unshift($authControllers,'Ubiquity\\controllers\\auth\\AuthControllerConfig');
175+
$authControllers = \array_combine($authControllers, $authControllers);
174176
$ctrlList = $this->jquery->semantic()->htmlDropdown("ctrl-list", "Ubiquity\\controllers\\auth\\AuthController", $authControllers);
175177
$ctrlList->addClass($this->style);
176178
$ctrlList->asSelect("baseClass");
@@ -228,7 +230,8 @@ public function _addAuthController() {
228230
if (! UString::startswith($baseClass, "\\")) {
229231
$baseClass = "\\" . $baseClass;
230232
}
231-
$this->scaffold->addAuthController(ucfirst($_POST["auth-name"]), $baseClass, $views, $route, isset($_POST["ck-use-inheritance"]));
233+
$className=\ucfirst($_POST["auth-name"]);
234+
$this->scaffold->addAuthController($className, $baseClass, $views, $route, isset($_POST["ck-use-inheritance"]));
232235
$this->jquery->get($this->_getFiles()
233236
->getAdminBaseRoute() . "/_refreshControllers/refresh", "#dtControllers", [
234237
"jqueryDone" => "replaceWith",

0 commit comments

Comments
 (0)