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

setCategories will remove all other tags of a customer :-( #361

Open
rycks opened this issue Apr 17, 2024 · 0 comments
Open

setCategories will remove all other tags of a customer :-( #361

rycks opened this issue Apr 17, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@rycks
Copy link
Contributor

rycks commented Apr 17, 2024

Surprise today, an old customer with 20 tags make a new order online ... and "boum" now he has only one tag !

I don't have the time to make a PR, here is the problem (register_instance.php)

	if (! empty($conf->global->SELLYOURSAAS_DEFAULT_CUSTOMER_CATEG)) {
		dol_syslog("register_instance.php We will set customer into the categroy");

		$result = $tmpthirdparty->setCategories(array($conf->global->SELLYOURSAAS_DEFAULT_CUSTOMER_CATEG => $conf->global->SELLYOURSAAS_DEFAULT_CUSTOMER_CATEG), 'customer');
		if ($result < 0) {
@rycks rycks added the Bug Something isn't working label Apr 17, 2024
Hystepik pushed a commit to Hystepik/sellyoursaas that referenced this issue Jun 13, 2024
eldy added a commit that referenced this issue Jul 3, 2024
fix setCategories will remove all other tags of a customer :-( #361
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant