Scenario:
* a view (for example "see first attached image) defined in .views_default.inc
* is modified by visiting /admin/structure/views/view//edit
* and name, path, title are changed (look at values on second image)
* the changed view is saved

Then the saved view is exported and
* the values for view->name
* and "translatables"
are still the old ones (compare third image).

CommentFileSizeAuthor
views-2.png19.39 KBschildi
views-1.png24.42 KBschildi
views-0.png8.96 KBschildi

Comments

dawehner’s picture

Well the tree screenshots you showed actually shows that it's working

You renamed the human name of a view from bgv_biblio_jahr_band_seite to bgv_biblio_jahr_nr_seite and tada you have the second one in the export. You seem want to be able to rename the machine name of a view right?

dawehner’s picture

Status: Active » Postponed (maintainer needs more info)

Update status

schildi’s picture

I am not sure to understand your argument.

- an existing and working view is duplicated in the UI
- then the new view is changed (UI, temporary version) to fit the new needs (name, description, path etc)
- the new view is saved
- and exported

In the export
- the "human readable name" is changed as expected
- view->name still contains the old unchanged value - what is a bug in my eyes
- and the array "translatables" is indexed by the old unmodified string

When you look at the images
- image 1: you see the new values for title and path as "..._nr_seite"
- image 2: in the export you see "view->name" still holding the unmodified value "..._jahr_nr"

dawehner’s picture

Believe it or not, but images are so much harder to parse.then just simple text exports.

I can just guess but maybe adding human_name and description to the view class explicit might fix the problem.

schildi’s picture

OK, that sounds like you are not interested in this error report.
Then please close this issue.

Regards

dawehner’s picture

You know it's quite hard to figure out what people did and what they expected etc. If i had said something disrespectful, please forgive me, i just want to get the most out of my freetime.

Just make your and the maintainers life easier by reporting useful stuff.

- image 1: you see the new values for title and path as "..._nr_seite"
- image 2: in the export you see "view->name" still holding the unmodified value "..._jahr_nr"

The first image shows the "human readable name" of the view. If you look at the image2 you will see that this value was changed there as well. $view->name is the machine readable name of the view, maybe you mix something up here.

esmerel’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)