Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-19687

publicAPI : ezkeyword is not updated correctly when keyword object is updated

    XMLWordPrintable

Details

    • Stetind Sprint 7

    Description

      records in the ezkeyword table is not updated correctly when ezkeyword object is updated

      Steps to reproduce
      #1 Create a object with keyword datatype:
        Keywords : key1, key2
      #2 update the object setting new keywords:
        Keywords : key1, key2updated
      #3 run query:
      mysql> select * from ezkeyword;
      +----------+----+-------------+
      | class_id | id | keyword     |
      +----------+----+-------------+
      |       16 |  1 | key1        |
      |       16 |  2 | key2        |
      |       16 |  3 | key1        |
      |       16 |  4 | key2        |
      |       16 |  5 | key1        |
      |       16 |  6 | key2updated |
      +----------+----+-------------+
      
      Expected result should have been:
      mysql> select * from ezkeyword;
      +----------+----+-------------+
      | class_id | id | keyword     |
      +----------+----+-------------+
      |       16 |  3 | key1        |
      |       16 |  4 | key2updated  |
      +----------+----+-------------+
      
      ( this is what happens if you do the same thing using admin2 interface )
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vl vl
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Time Spent - 1 day, 25 minutes Remaining Estimate - 2 hours
                2h
                Logged:
                Time Spent - 1 day, 25 minutes Remaining Estimate - 2 hours
                1d 25m