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

Employee connected #268

Closed
wants to merge 3 commits into from

Conversation

axometeam
Copy link

Alert message when more than one employee is in edit mode in the backoffice.
To avoid modifications by two employees at the same time which corrupts the blocks in the database

Employee connected - Alert message when more than one employee is in edit mode in the backoffice
@axometeam
Copy link
Author

image

@PrestaSafe
Copy link
Owner

PrestaSafe commented Oct 16, 2024

Hi and many thanks for the PR !
It's a very great update for PrettyBlocks.
I have noticed some few errors, but, in my case, the connected_employee is not feed and i don't really know why.
The Front Controller return me an

{success: false} 

all the time.
i'll make for test to find why it's not working fine.

@PrestaSafe
Copy link
Owner

ok found it:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'lastpresta.ps_prettyblocks_editing_users' doesn't exist
@axometeam can you give me the schema of this table please ?

@axometeam
Copy link
Author

Hello :)
Normally the table is supposed to be installed when the module is installed. There is a new "makeConnectedEmployee" method in the main module file. There is the table structure in it :)
Small error on our side on the table name, this is corrected in the last commit

_dev/src/main.js Show resolved Hide resolved
@PrestaSafe
Copy link
Owner

moving into #269

@PrestaSafe PrestaSafe closed this Oct 17, 2024
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.

3 participants