File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 2020
2121 // merge both php alerts and localstorage alerts
2222 Object .entries ($alerts_from_php).forEach (function (type ) {
23-
2423 if (typeof $alerts_from_localstorage[type[0 ]] !== ' undefined' ) {
25- type[1 ].map (function (msg ) {
24+ type[1 ].forEach (function (msg ) {
2625 $alerts_from_localstorage[type[0 ]].push (msg);
2726 });
2827 } else {
Original file line number Diff line number Diff line change 2525 <script type =" text/javascript" >
2626 // Save default sidebar class
2727 let sidebarClass = (document .body .className .match (/ sidebar-(sm| md| lg| xl)-show/ ) || [' sidebar-lg-show' ])[0 ];
28- let sidebarTransition = function () {
28+ let sidebarTransition = function (value ) {
2929 document .querySelector (' .app-body > .sidebar' ).style .transition = value || ' ' ;
3030 };
3131
Original file line number Diff line number Diff line change @@ -160,8 +160,7 @@ function bpFieldInitRelationshipSelectElement(element) {
160160 // we reselect the previously selected options if any.
161161 Object .entries ($currentValue).forEach (function (option ) {
162162 selectedOptions .push (option[0 ]);
163- var $option = new Option (option[1 ], option[0 ]);
164- $ (element).append ($option);
163+ $ (element).val (selectedOptions);
165164 });
166165
167166 if (! $allows_null && $item === false ) {
Original file line number Diff line number Diff line change 3636
3737 Object .entries ($newAlerts).forEach (function (type ) {
3838 if (typeof $oldAlerts[type[0 ]] !== ' undefined' ) {
39- type[1 ].map (function (msg ) {
39+ type[1 ].forEach (function (msg ) {
4040 $oldAlerts[type[0 ]].push (msg);
4141 });
4242 } else {
You can’t perform that action at this time.
0 commit comments