From c8c6b7d74c7bfe146e5ccc58104ab2ca0aebf76d Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 13 Mar 2026 13:41:46 +0100 Subject: [PATCH 1/4] fix typo --- utils/Commands/UpdateextensionCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/Commands/UpdateextensionCommand.php b/utils/Commands/UpdateextensionCommand.php index 2fbf2131a..ac9aab203 100644 --- a/utils/Commands/UpdateextensionCommand.php +++ b/utils/Commands/UpdateextensionCommand.php @@ -40,7 +40,7 @@ class UpdateextensionCommand extends Command protected function configure() { $this->setName('ext:update') - ->setDescription('Check for extension upates') + ->setDescription('Check for extension updates') ->setHelp('Retrieves the list of extensions from the repository and offers to either update or install those extension, which met the dependencies. If --url is not set, the repository url from the SeedDMS configuraton is used.') ->addOption('url', '', InputOption::VALUE_REQUIRED, 'Url of repository.', null) ; From 4ba8eff3002426a20cc927540d9b77c764041b77 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 13 Mar 2026 13:55:24 +0100 Subject: [PATCH 2/4] add new flag to migrate extension --- utils/Commands/ConfigureextensionCommand.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/utils/Commands/ConfigureextensionCommand.php b/utils/Commands/ConfigureextensionCommand.php index 388f8754d..73f821d6d 100644 --- a/utils/Commands/ConfigureextensionCommand.php +++ b/utils/Commands/ConfigureextensionCommand.php @@ -43,6 +43,7 @@ class ConfigureextensionCommand extends Command ->addOption('name', '', InputOption::VALUE_REQUIRED, 'Name of extension.', null) ->addOption('enable', '', InputOption::VALUE_NONE, 'Enable extension.') ->addOption('disable', '', InputOption::VALUE_NONE, 'Disable extension.') + ->addOption('migrate', '', InputOption::VALUE_NONE, 'Migrate extension.') ; } @@ -103,6 +104,17 @@ class ConfigureextensionCommand extends Command } else { $output->writeln(sprintf("Extension already disabled.")); } + } elseif ($input->getOption('migrate')) { + $ret = $extmgr->migrate($extname, $settings, $dms, $logger); + if($ret !== null) { + if($ret === true) { + $output->writeln(sprintf("Migration of extension successful")); + $output->writeln(sprintf("Extension is %s.", $settings->extensionIsDisabled($extname) ? 'disabled' : 'enabled')); + } else { + $output->writeln(sprintf("Migration of extension failed")); + return Command::FAILURE; + } + } } else { $output->writeln(sprintf("Extension is %s.", $settings->extensionIsDisabled($extname) ? 'disabled' : 'enabled')); } From 5eb4d0bdd513cc8e1d6b2ea7b8120436e0b54ade Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 16 Mar 2026 21:51:56 +0100 Subject: [PATCH 3/4] make html_url() and html_link() public --- inc/inc.ClassViewCommon.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/inc.ClassViewCommon.php b/inc/inc.ClassViewCommon.php index 8cb152c96..05a0de2e1 100644 --- a/inc/inc.ClassViewCommon.php +++ b/inc/inc.ClassViewCommon.php @@ -320,7 +320,7 @@ class SeedDMS_View_Common { * @param array $urlparams list of url parameters * @return string $url */ - protected function html_url($view, $urlparams=array()) { /* {{{ */ + public function html_url($view, $urlparams=array()) { /* {{{ */ $url = $this->params['settings']->_httpRoot."out/out.".$view.".php"; if($urlparams) $url .= "?".http_build_query($urlparams); @@ -339,7 +339,7 @@ class SeedDMS_View_Common { * @param boolean $hsc set to false if htmlspecialchars() shall not be called * @return string link */ - protected function html_link($view, $urlparams, $linkparams, $link, $hsc=true, $nocheck=false, $wrap=array()) { /* {{{ */ + public function html_link($view, $urlparams, $linkparams, $link, $hsc=true, $nocheck=false, $wrap=array()) { /* {{{ */ if(!$nocheck) if(!$this->check_view_access($view)) return ''; From 069ecbb05bbd25da92534cccf7d935c65a6f0ded Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 16 Mar 2026 21:52:21 +0100 Subject: [PATCH 4/4] call hook postBatchOperations --- views/bootstrap/class.Search.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/views/bootstrap/class.Search.php b/views/bootstrap/class.Search.php index 5c69e5d87..081feea16 100644 --- a/views/bootstrap/class.Search.php +++ b/views/bootstrap/class.Search.php @@ -1679,6 +1679,10 @@ $(document).ready(function() { } } } + $txt = $this->callHook('postBatchOperations'); + if(is_string($txt)) { + echo $txt; + } // }}} ?>