Moodle

Add option in XMLB Editor to automatically save xml files if enum info is detected, trimming it.

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Database SQL/XMLDB
  • Labels:
    None
  • Difficulty:
    Moderate
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

With the enums dropped from core, it's necessary to facilitate to developers to have one simple utility built in the XMLDB Editor to save easily their install.xml files with the enum data deleted. Ideally it should:

  • Detect if ENUM/ENUMVALUES data es present
  • Present message informing about that and:
    1. Showing upgrade code necessary (if there is any ENUM).
    2. Delete enum code from xml file and unload it.

That's all. Ciao

Issue Links

Activity

Hide
Eloy Lafuente (stronk7) added a comment -

Now the XMLDB parser detects ENUM/ENUMVALUES info when parsing files and annotates it, so XMLDB Editor is able to inform the developer about what to do, depending of the active/inactive status of the ENUM info found.

Resolving as fixed, ciao

Show
Eloy Lafuente (stronk7) added a comment - Now the XMLDB parser detects ENUM/ENUMVALUES info when parsing files and annotates it, so XMLDB Editor is able to inform the developer about what to do, depending of the active/inactive status of the ENUM info found. Resolving as fixed, ciao

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: