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

45582 geo-position field in interest forms #779

Merged
merged 7 commits into from
Jul 25, 2024

Conversation

yeneastgate
Copy link
Contributor

related to #757
changed log:
Fix bug geo-position display the wrong position

@coveralls
Copy link

coveralls commented Mar 20, 2024

Pull Request Test Coverage Report for Build 10090246624

Details

  • 6 of 6 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.004%) to 79.424%

Totals Coverage Status
Change from base Build 10038829666: 0.004%
Covered Lines: 8361
Relevant Lines: 10527

💛 - Coveralls

@fredericalpers fredericalpers added this to the v4.22 milestone Mar 20, 2024
@fredericalpers fredericalpers linked an issue Mar 20, 2024 that may be closed by this pull request
2 tasks
@fredericalpers fredericalpers added bug Indicates an unexpected problem or unintended behaviour QA Issue or Pull request that is in review component: interest form Issue, Pull Request or Discussion related to interest forms labels Mar 21, 2024
@fredericalpers fredericalpers added the deploy test Triggers event to create test version label Jul 22, 2024
Copy link

Steps to install the approved version:

  1. Download onoffice-4.20-15-g19557214-please-unpack.zip from https://github.com/onOffice-Web-Org/oo-wp-plugin/actions/runs/10042465955.
  2. Unpack the downloaded file to get another .zip file.
  3. Upload that inner .zip file to WordPress.

@fredericalpers
Copy link
Contributor

Hi @yeneastgate,

During testing of the current changes, I encountered an issue that needs to be resolved before this pull request can be merged. The error occurs specifically on pages with property listings and results in a fatal error. The error message is as follows:

Stack trace:
#0 /www/htdocs/w01bee5f/w3pm.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/Field/OutputFields.php(77): array_splice(Array, false, 0, Array)
#1 /www/htdocs/w01bee5f/w3pm.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/EstateList.php(893): onOffice\WPlugin\Field\OutputFields->getVisibleFilterableFields(Object(onOffice\WPlugin\DataView\DataListView), Object(onOffice\WPlugin\Types\FieldsCollection), Object(onOffice\WPlugin\Controller\GeoPositionFieldHandler))
#2 /www/htdocs/w01bee5f/w3pm.onofficeweb.com/htdocs/wp-content/plugins/onoffice-personalized/templates/estate/SearchForm.php(21): onOffice\WPlugin\EstateList->getVisibleFilterableFields()
#3 /www/htdocs/w01bee5f/w3pm.onofficeweb.com/htdocs/wp-content/plugins/onoffice-personalized/templates/ in /www/htdocs/w01bee5f/w3pm.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/Field/OutputFields.php on line 77

The root cause of the issue seems to be that the array_splice() function in OutputFields.php at line 77 is receiving a boolean value instead of an integer for its second parameter. Once this is fixed, I will re-run the tests.

@yeneastgate
Copy link
Contributor Author

@fredericalpers This error occurs when the admin estate list does not have the "Geo Position" field. I fixed it, here is the video evidence. Please test it again. Thanks!

779_videoFixBug.mp4

@miauzjpg miauzjpg added deploy test Triggers event to create test version and removed deploy test Triggers event to create test version labels Jul 25, 2024
Copy link

Steps to install the approved version:

  1. Download onoffice-4.20-16-g2f7ccb1a-please-unpack.zip from https://github.com/onOffice-Web-Org/oo-wp-plugin/actions/runs/10090585108.
  2. Unpack the downloaded file to get another .zip file.
  3. Upload that inner .zip file to WordPress.

Copy link
Contributor

@miauzjpg miauzjpg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx!

Copy link

Steps to install the approved version:

  1. Download onoffice-4.20-16-g2f7ccb1a-please-unpack.zip from https://github.com/onOffice-Web-Org/oo-wp-plugin/actions/runs/10091477154.
  2. Unpack the downloaded file to get another .zip file.
  3. Upload that inner .zip file to WordPress.

@miauzjpg miauzjpg merged commit 862162f into master Jul 25, 2024
9 checks passed
@miauzjpg miauzjpg deleted the 45582-geo-position-field-in-interest-forms branch July 25, 2024 09:19
@fredericalpers fredericalpers modified the milestones: v5.1, v5.0 Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behaviour component: interest form Issue, Pull Request or Discussion related to interest forms deploy test Triggers event to create test version QA Issue or Pull request that is in review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Geo-Position field in Interest forms
4 participants