fix: Récupérer l'opération active depuis la table operations

- Corrige l'erreur SQL 'Unknown column fk_operation in users'
- L'opération active est récupérée depuis operations.chk_active = 1
- Jointure avec users pour filtrer par entité de l'admin créateur
- Query: SELECT o.id FROM operations o INNER JOIN users u ON u.fk_entite = o.fk_entite WHERE u.id = ? AND o.chk_active = 1
This commit is contained in:
2026-01-26 16:57:08 +01:00
parent c24a3afe6a
commit 0687900564
3040 changed files with 77204 additions and 1578 deletions

0
api/TODO-API.md Normal file → Executable file
View File

0
api/alter_table_geometry.sql Normal file → Executable file
View File

0
api/config/nginx/pra-geo-http-only.conf Normal file → Executable file
View File

0
api/config/nginx/pra-geo-production.conf Normal file → Executable file
View File

0
api/config/whitelist_ip_cache.txt Normal file → Executable file
View File

0
api/create_table_x_departements_contours.sql Normal file → Executable file
View File

0
api/data/README.md Normal file → Executable file
View File

0
api/docs/API-SECURITY.md Normal file → Executable file
View File

0
api/docs/CHAT_MODULE.md Normal file → Executable file
View File

0
api/docs/CHK_USER_DELETE_PASS_INFO.md Normal file → Executable file
View File

0
api/docs/DELETE_PASSAGE_PERMISSIONS.md Normal file → Executable file
View File

0
api/docs/EVENTS-LOG.md Normal file → Executable file
View File

0
api/docs/FIX_USER_CREATION_400_ERRORS.md Normal file → Executable file
View File

0
api/docs/GESTION-SECTORS.md Normal file → Executable file
View File

0
api/docs/INSTALL_FPDF.md Normal file → Executable file
View File

0
api/docs/PLANNING-STRIPE-API.md Normal file → Executable file
View File

0
api/docs/PREPA_PROD.md Normal file → Executable file
View File

0
api/docs/SETUP_EMAIL_QUEUE_CRON.md Normal file → Executable file
View File

0
api/docs/STRIPE-BACKEND-MIGRATION.md Normal file → Executable file
View File

0
api/docs/STRIPE-TAP-TO-PAY-FLOW.md Normal file → Executable file
View File

0
api/docs/STRIPE-TAP-TO-PAY-REQUIREMENTS.md Normal file → Executable file
View File

0
api/docs/STRIPE_VERIF.md Normal file → Executable file
View File

0
api/docs/UPLOAD-MIGRATION-RECAP.md Normal file → Executable file
View File

0
api/docs/UPLOAD-REORGANIZATION.md Normal file → Executable file
View File

0
api/docs/USERNAME_VALIDATION_CHANGES.md Normal file → Executable file
View File

0
api/docs/_logo_recu.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 99 KiB

After

Width:  |  Height:  |  Size: 99 KiB

0
api/docs/_recu_template.pdf Normal file → Executable file
View File

0
api/docs/contour-des-departements.geojson Normal file → Executable file
View File

0
api/docs/create_table_user_devices.sql Normal file → Executable file
View File

0
api/docs/departements_limitrophes.md Normal file → Executable file
View File

0
api/docs/logrotate_email_queue.conf Normal file → Executable file
View File

0
api/docs/nouvelles-routes-session-refresh.txt Normal file → Executable file
View File

0
api/docs/recu_13718.pdf Normal file → Executable file
View File

0
api/docs/recu_19500582.pdf Normal file → Executable file
View File

0
api/docs/recu_19500586.pdf Normal file → Executable file
View File

0
api/docs/recu_537254062.pdf Normal file → Executable file
View File

0
api/docs/recu_972506460.pdf Normal file → Executable file
View File

0
api/docs/traite_batiments.sql Normal file → Executable file
View File

0
api/docs/x_departements_contours.sql Normal file → Executable file
View File

0
api/docs/x_departements_contours_corrected.sql Normal file → Executable file
View File

0
api/docs/x_departements_contours_fixed.sql Normal file → Executable file
View File

0
api/migration_add_departements_contours.sql Normal file → Executable file
View File

0
api/migration_add_sectors_adresses.sql Normal file → Executable file
View File

0
api/migrations/add_dept_limitrophes.sql Normal file → Executable file
View File

0
api/migrations/integrate_contours_to_departements.sql Normal file → Executable file
View File

0
api/migrations/update_all_dept_limitrophes.sql Normal file → Executable file
View File

1
api/ralph Submodule

Submodule api/ralph added at 098579b5a1

0
api/scripts/CORRECTIONS_MIGRATE.md Normal file → Executable file
View File

0
api/scripts/MIGRATION_PATCH_INSTRUCTIONS.md Normal file → Executable file
View File

0
api/scripts/README-migration.md Normal file → Executable file
View File

0
api/scripts/check_geometry_validity.sql Normal file → Executable file
View File

0
api/scripts/config/update_php_fpm_settings.sh Normal file → Executable file
View File

0
api/scripts/create_addresses_users.sql Normal file → Executable file
View File

0
api/scripts/create_addresses_users_by_env.sql Normal file → Executable file
View File

0
api/scripts/cron/CRON.md Normal file → Executable file
View File

0
api/scripts/cron/cleanup_security_data.php Normal file → Executable file
View File

0
api/scripts/cron/process_email_queue_with_daily_log.sh Normal file → Executable file
View File

0
api/scripts/cron/rotate_event_logs.php Normal file → Executable file
View File

0
api/scripts/fix_geometry_for_spatial_index.sql Normal file → Executable file
View File

0
api/scripts/import_departements_from_file.php Normal file → Executable file
View File

0
api/scripts/import_department_boundaries.php Normal file → Executable file
View File

0
api/scripts/init_departements_contours.php Normal file → Executable file
View File

0
api/scripts/migrate_uploads_structure.php Normal file → Executable file
View File

0
api/scripts/migration2/README.md Normal file → Executable file
View File

0
api/scripts/migration2/geo_app_structure.sql Normal file → Executable file
View File

0
api/scripts/migration2/geosector-structure.sql Normal file → Executable file
View File

0
api/scripts/migration2/logs/.gitignore vendored Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/DataMigrator.php Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/DatabaseConfig.php Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/DatabaseConnection.php Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/MigrationLogger.php Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/OperationMigrator.php Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/PassageMigrator.php Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/SectorMigrator.php Normal file → Executable file
View File

0
api/scripts/migration2/php/lib/UserMigrator.php Normal file → Executable file
View File

0
api/scripts/migrations_entites.json Normal file → Executable file
View File

0
api/scripts/orga/TODO-ISOLATION-OPERATIONS.md Normal file → Executable file
View File

0
api/scripts/orga/fix_fk_constraints.sql Normal file → Executable file
View File

0
api/scripts/orga/fix_fk_constraints_safe.sql Normal file → Executable file
View File

0
api/scripts/orga/truncate_all_tables.sql Normal file → Executable file
View File

0
api/scripts/orga/verify_isolation.sql Normal file → Executable file
View File

0
api/scripts/patch_migration_scripts.sh Normal file → Executable file
View File

0
api/scripts/php/init_security_tables.php Normal file → Executable file
View File

0
api/scripts/php/verify_migration_structure.php Normal file → Executable file
View File

0
api/scripts/setup_addresses_access.sh Normal file → Executable file
View File

0
api/scripts/setup_addresses_access_by_env.sh Normal file → Executable file
View File

0
api/scripts/sql/add_chk_user_delete_pass.sql Normal file → Executable file
View File

0
api/scripts/sql/add_chk_username_manuel.sql Normal file → Executable file
View File

0
api/scripts/sql/add_email_queue_fields.sql Normal file → Executable file
View File

0
api/scripts/sql/add_unique_constraints_SIMPLE.sql Normal file → Executable file
View File

0
api/scripts/sql/add_unique_constraints_ope_tables.sql Normal file → Executable file
View File

View File

View File

0
api/scripts/sql/create_chat_tables.sql Normal file → Executable file
View File

0
api/scripts/sql/create_event_stats_daily.sql Normal file → Executable file
View File

0
api/scripts/sql/create_security_tables.sql Normal file → Executable file
View File

0
api/scripts/sql/drop_stripe_devices_table.sql Normal file → Executable file
View File

0
api/scripts/sql/migration_username_utf8_support.sql Normal file → Executable file
View File

0
api/scripts/sql/truncate_data_tables.sql Normal file → Executable file
View File

0
api/src/Controllers/ChatController.php Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More