Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for U4-5719 U7.2 - mediaPickerDialog broken for data type prevalues #523

Closed
wants to merge 2 commits into from

Conversation

Jeavon
Copy link
Contributor

@Jeavon Jeavon commented Oct 30, 2014

No description provided.

@@ -58,7 +58,11 @@ function mediaPickerController($scope, dialogService, entityResource, $log, icon

//load media data
var modelIds = $scope.model.value ? $scope.model.value.split(',') : [];
entityResource.getByIds(modelIds, $scope.cfg.entityType).then(function (data) {
var entityType = "Media";
if (!$scope.cfg === undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is required. Half the point of the other changes was to get rid of the silly $scope.cfg stuff which was totally useless and confusing. There is no $scope.cfg anymore anywhere. Since this is just a media picker, the entityType will always be media.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I must have just missed the $scope.cfg reference. Anyways, i'll have a look and pull this in shortly.

@Jeavon
Copy link
Contributor Author

Jeavon commented Oct 30, 2014

I did wonder what it was there for but didn't know if it was used somewhere with $scope.cfg, I have updated to PR to just fix to "Media" now. Thanks!

@Jeavon
Copy link
Contributor Author

Jeavon commented Nov 4, 2014

@Shandem is this ok now?

@Shazwazza
Copy link
Contributor

Sorry, have been away need to check!

@Jeavon
Copy link
Contributor Author

Jeavon commented Nov 17, 2014

@Shazwazza this is still broken in 7.2-beta2, any update?

@Shazwazza
Copy link
Contributor

Was fixed in PR: 528

rev: 6ea7b32
and then rev: 15119fc

Can you try latest build please?

@Shazwazza Shazwazza closed this Nov 18, 2014
@Jeavon
Copy link
Contributor Author

Jeavon commented Nov 18, 2014

Yes, seems to be fixed now, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants