Skip to content

Conversation

simonsolutions
Copy link
Contributor

Get the Plesk item ID as array index in Plesk item lists (e.g. sites). If no id is provided in the result there is no index used from Plesk response.
Useful for issue #88

Get the Plesk item ID as array index in Plesk item lists (e.g. sites). If no id is provided in the result there is no index used from Plesk response.
@sibprogrammer
Copy link
Member

Unfortunately, it breaks the backward compatibility. A lot of tests will highlight the problem. E.g. see SiteTest::testGetAll

@simonsolutions
Copy link
Contributor Author

What do you think about a new method that has just an array with one property (guid, name, ...) as key and as value the id of the element? could also be in operator as global routine and used in the different sections.
Let me know what you think about that solution?

@sibprogrammer
Copy link
Member

I tried to address the issues using a little bit different approach. See a665af5
Hope it will help to solve such cases.

@simonsolutions simonsolutions deleted the patch-2 branch September 18, 2021 19:44
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.

2 participants