Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong expression used for photos #487

Open
signedav opened this issue Feb 20, 2023 · 1 comment
Open

Wrong expression used for photos #487

signedav opened this issue Feb 20, 2023 · 1 comment

Comments

@signedav
Copy link
Member

The customer configures the expressions in QFieldSync, but they are not considered.

When having a look at the QGS file it seems, that there is a backwards compatibility issue.

<customproperties>
  <Option type="Map">
          <Option name="QFieldSync/attachment_naming" type="QString" value="{&quot;Foto1&quot;: &quot;'SAGU' || '/' || format_date(now(),'yyyyMMddhhmmsszzz') || '.{extension}'&quot;, &quot;Foto3&quot;: &quot;'Foto3' ||  '/'  || 'test_'|| format_date(now(),'yyyyMMddhhmmsszzz') || '.jpg'&quot;}"/>
          <Option name="QFieldSync/photo_naming" type="QString" value="{&quot;Foto1&quot;: &quot;'DCIM/pn-protokoll-gruppe_' || format_date(now(),'yyyyMMddhhmmsszzz') || '.jpg'&quot;, &quot;Foto3&quot;: &quot;'DCIM/pn-gruppe_' || format_date(now(),'yyyyMMddhhmmsszzz') || '.jpg'&quot;}"/>
          [...]
  </Option>
</customproperties>

In QFieldSync he configures what is stored as attachment_naming but what QField uses is what is stored in photo_naming.

QField: 2.6.3
QFieldSync: 4.3.1
QGIS: 3.22.5

@signedav
Copy link
Member Author

The issue in the end is that QField 2.6.3 reads photo_naming while QFieldSync 4.3.1 writes attachment_naming.
QField Master apparently reads attachment_naming. @nirvn I'm pretty sure what it is about. Apparently QField is a step behind QFieldSync. Shouldn't there be a backwards compatibility fallback in QField or QFieldSync?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant