This is an automated email from the ASF dual-hosted git repository.

matthiasblaesing pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-tools.git


The following commit(s) were added to refs/heads/master by this push:
     new 59c0bc2  Update "last edited at" timestamp for plugin when plugin -> 
NB version assignment is updated
     new 5db6098  Merge pull request #35 from 
matthiasblaesing/pp3-update-edit-date-version-edit
59c0bc2 is described below

commit 59c0bc2b2e36c83d582f0673008f1692b6172c8b
Author: Matthias Bläsing <mblaes...@doppel-helix.eu>
AuthorDate: Thu Oct 29 22:00:06 2020 +0100

    Update "last edited at" timestamp for plugin when plugin -> NB version 
assignment is updated
---
 .../Application/src/Application/Controller/PluginVersionController.php | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/pp3/module/Application/src/Application/Controller/PluginVersionController.php 
b/pp3/module/Application/src/Application/Controller/PluginVersionController.php
index ae990eb..2b7e135 100644
--- 
a/pp3/module/Application/src/Application/Controller/PluginVersionController.php
+++ 
b/pp3/module/Application/src/Application/Controller/PluginVersionController.php
@@ -93,6 +93,9 @@ class PluginVersionController extends AuthenticatedController 
{
             $this->rebuildAllCatalogs();
             
             if ($showFlash) {
+                $plugin = $pluginVersion->getPlugin();
+                $plugin->setLastUpdatedAt(new \DateTime('now'));
+                $this->_pluginRepository->persist($plugin);
                 
$this->flashMessenger()->setNamespace('success')->addMessage('Plugin version 
updated');
                 return 
$this->redirect()->toUrl('./edit?id='.$pluginVersion->getId());                
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to