Fixes re-syncing member and media data after saving

This commit is contained in:
Shannon
2019-08-14 12:45:39 +10:00
parent 67f0a65811
commit df391c86f3
2 changed files with 2 additions and 6 deletions

View File

@@ -484,7 +484,7 @@ function contentEditingHelper(fileManager, $q, $location, $routeParams, editorSt
var savedVariants = [];
if (origContent.variants) {
isContent = true;
//it's contnet so assign the variants as they exist
//it's content so assign the variants as they exist
origVariants = origContent.variants;
savedVariants = savedContent.variants;
}
@@ -510,7 +510,7 @@ function contentEditingHelper(fileManager, $q, $location, $routeParams, editorSt
//special case for content, don't sync this variant if it wasn't tagged
//for saving in the first place
if (!origVariant.save) {
if (isContent && !origVariant.save) {
continue;
}

View File

@@ -12,10 +12,6 @@
</div>
<div ng-switch-when="true">
<pre><code>Hello</code></pre>
<pre><code>{{vm.showReset}}</code></pre>
<pre><code>{{vm.passwordValues | json}}</code></pre>
<ng-form name="vm.passwordForm">
<umb-control-group alias="resetPassword" label="@user_resetPassword" ng-show="vm.config.enableReset">
<input type="checkbox" ng-model="vm.passwordValues.reset"