Conversation
…rsion Use the module's own Lib\MikoPBXVersion compatibility layer instead of the non-existent MikoPBX\Common\Providers\MikoPBXVersionProvider class, which caused a fatal error on older MikoPBX releases when saving an employee.
- Fix terminology: "dial plan" → "call group" (EN) / keep "телефонная группа" (RU) - Fix translations across all 25 language files for consistency - Rewrite README.md and README.ru.md to match project conventions (badges, concise structure) - Rename README_RU.md → README.ru.md - Rename sound files from moduleusersgroups-call-direction-unavailable.wav to forbidden.wav (MikoPBX core auto-adds moduleusersgroups- prefix during installation) - Add forbidden.wav sound files for 23 languages
Currently translated at 100.0% (37 of 37 strings) Translation: MIKOPBX/ModuleUsersGroups Translate-URL: https://weblate.mikopbx.com/projects/mikopbx/moduleusersgroups/pt_BR/
…le (#34) Root cause: UsersGroups declared its hasMany GroupMembers / AllowedOutboundRules relations with ACTION_CASCADE. On module disable the core probe PbxExtensionState::makeBeforeDisableTest() calls beforeDelete() on every module record, which cascade-deletes the child rows. The probe wraps the work in a transaction and rolls it back, but the rollback runs on the MAIN database connection while this module stores its tables in a SEPARATE database file, so the cascade deletes are never rolled back and every group member and outbound-rule link is lost on each disable/enable cycle. Changes: - Models/UsersGroups: ACTION_CASCADE -> NO_ACTION on both child relations - App/Controllers deleteAction: explicit, transactional child cleanup (reassign members to the default group or delete them, delete the group's outbound-rule links) replacing the removed ORM cascade - Lib/RestAPI CleanupOrphanedMembersAction: set-based deletes, report a failed DELETE as failure, and sweep members/rules orphaned by a missing group - Setup/PbxExtensionSetup: drop the destructive transferOldSettings() migration that dropped live module tables - Messages/en,ru: add mod_usrgr_ErrorOnDeleteGroup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.