File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
www/addons/mod/data/services Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,12 @@ angular.module('mm.addons.mod_data')
6565 angular . forEach ( actions , function ( enabled , action ) {
6666 replace = new RegExp ( "##" + action + "##" , 'g' ) ;
6767 if ( enabled ) {
68- render = '<mma-mod-data-action action="' + action + '" entry="entries[' + entryId + ']" database="data"></mma-mod-data-action>' ;
68+ if ( action == "moreurl" ) {
69+ // Render more url directly because it can be part of an HTML attribute.
70+ render = $mmSite . getURL ( ) + '/mod/data/view.php?d={{data.id}}&rid=' + entryId ;
71+ } else {
72+ render = '<mma-mod-data-action action="' + action + '" entry="entries[' + entryId + ']" database="data"></mma-mod-data-action>' ;
73+ }
6974 template = template . replace ( replace , render ) ;
7075 } else {
7176 template = template . replace ( replace , "" ) ;
You can’t perform that action at this time.
0 commit comments