-
- 24,544 Posts
I'm glad it works for you.
-
- 1,572 Posts
Hi Bob,
I was wondering if it was possible to make this write to the manager log for when and who did the upgrade ?
-
- 24,544 Posts
I think that would be possible, though it would only log the launch of the upgrade process, so the log might show an upgrade when, really, the upgrade was never completed.
-
- 24,544 Posts
Sorry, I thought I could do it fairly simply, but for security MODX doesn't exist when the form is processed, nor does the user object.
I tried storing the user ID in the form, instantiating MODX, and calling $modx->logManagerAction(), but for some reason it's writing nothing to the manger log and there's nothing in the error log.
I think I could do it when the "Upgrade" button is clicked in the widget. That would give you a record of the user who clicked, but it wouldn't give you the version they upgraded to, and it would leave a record even if the person chose not to complete the upgrade.
Without the version number, I'm not sure it's worth it.
You could create a custom Dashboard and assign it to the Administrator group, so that your regular Manager users wouldn't get the widget.
-
- 24,544 Posts
I think he just wants a record of who updated to which version and when.
I have it working and it does include the version number.
It happens after all the new files are in place, just before setup is launched, so if the user doesn't complete the setup process, you'll still get the record in the Manager Actions log -- best I could do.
It was devilishly tricky and the changes are not as simple as I has hoped, so you'll have to wait for the next release (hopefully in the next few days).
-
- 24,544 Posts
The new release is available now. I hope it does what you want.