Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VirtueMart
Add Buyers to Joomla Groups for VirtueMart
Commits
4dd27bf1
Commit
4dd27bf1
authored
Mar 15, 2015
by
Reinhold Kainhofer
Browse files
Fix issues with VM3 (errors are removed)
parent
259b0ae6
Changes
1
Hide whitespace changes
Inline
Side-by-side
buyer_assign_group.php
View file @
4dd27bf1
...
...
@@ -164,11 +164,15 @@ class plgVmCustomBuyer_Assign_Group extends vmCustomPlugin {
'virtuemart_shoppergroup_id'
=>
$groups
);
$user_shoppergroups_table
=
$userModel
->
getTable
(
'vmuser_shoppergroups'
);
$shoppergroupData
=
$user_shoppergroups_table
->
bindChecknStore
(
$shoppergroupData
);
$errors
=
$user_shoppergroups_table
->
getErrors
();
foreach
(
$errors
as
$error
){
$this
->
setError
(
$error
);
vmError
(
'Set shoppergroup '
.
$error
);
$noError
=
false
;
if
(
!
defined
(
'VM_VERSION'
)
or
VM_VERSION
<
3
){
// getErrors was removed in VM3!
$errors
=
$user_shoppergroups_table
->
getErrors
();
foreach
(
$errors
as
$error
){
$this
->
setError
(
$error
);
vmError
(
'Set shoppergroup '
.
$error
);
$noError
=
false
;
}
}
$user_shoppergroups_table
->
emptyCache
();
return
$noError
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment