Note that the node type below is only an example, this happens with any node type that has not been implicitly set to a specific value. This will only happen if you have not edited a particular node type.
Node type Page has a 'natural' priority of 0.1.
Create a new node of type Page
Default priority in the Create Page sitemap section will show 0.0.
Save page with priority set to "Default".
New page will display priority of 0.1 in the sitemap.
This is also the case when you edit the page.
This behavior will cease when the node type is edited.
While this has no undesirable behavior in practice, it is confusing/misleading. I assume this might be part of the whole NULL as Default scheme, but I still believe it would be desirable to have these values match appropriately.
Comments
Comment #1
darren ohIt appears that array keys must be strings or whole numbers. Fixed in CVS commit 90792.
Comment #2
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
hanoiiI found this behavior happening in a site upgrading from the latest to the 1.1 version. After upgrading, I saw the 0.0 showed in the description field.
I went down to the code and thought there might be something happening in terms of int/string keyed arrays such as explained in this issue for D5 but after some testings I wasn't able to replicate the problem. I am sure that somehow a decimal got into the db:
select * from variable where name like '%xmlsitemap_node_type_priority_%';
But how or why I am not sure, as I wasn't able to do it again with the new version. Maybe this was left by some previous version.
Anyway, I just noticed that constants as integer or strings are mixed up along the code for the same thing, so it may be worth to look at this and think if it's worth standardizing it to one or the other.
For ie:
xmlsitemap_node.module:116
xmlsitemap_node.module:145
For my own modules, I generally define a constant on top of the module for this, to avoid missing a variable_get() if I somehow change the default value, so something like:
and a
globally along the code might be a good idea.
Just leaving here for a thought, as again, I wasn't able to put back that decimal value in the db.
Comment #4
Anonymous (not verified) commentedPlease don't reopen 2 year old issues that were created and closed for a different version. I'm not really following what you are trying to say. The default shown on the node edit pages is directly related to the default supplied by the value in the node (content) type record. But your problem doesn't seem relative to the title of this issue. At any rate, open a new issue if you have such problems.