Skip to content

Fix LinkPager::getPageRange when maxButtons assign with 2#20538

Merged
samdark merged 5 commits intoyiisoft:masterfrom
mspirkov:fix-link-pager
Sep 27, 2025
Merged

Fix LinkPager::getPageRange when maxButtons assign with 2#20538
samdark merged 5 commits intoyiisoft:masterfrom
mspirkov:fix-link-pager

Conversation

@mspirkov
Copy link
Copy Markdown
Contributor

Q A
Is bugfix? ✔️
New feature?
Breaks BC?
Fixed issues #19655

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.53%. Comparing base (31106c8) to head (e686f33).

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #20538   +/-   ##
=========================================
  Coverage     64.53%   64.53%           
- Complexity    11555    11556    +1     
=========================================
  Files           431      431           
  Lines         37581    37582    +1     
=========================================
+ Hits          24252    24253    +1     
  Misses        13329    13329           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@terabytesoftw
Copy link
Copy Markdown
Member

I think it would be great to check all the content generated by the widgets in the tests, and thus know exactly what it generates. What do you think? I plan to adopt it in the tests for the 2.2 branch, and i think it would be great for the master branch, in addition to being cleaner in terms of style code.

$this->assertEqualsWithoutLE(
    <<<HTML
    <div class="form-group field-dynamicmodel-name">
    <input type="email" id="dynamicmodel-name" class="form-control" name="DynamicModel[name]" required>
    </div>
    HTML,
    (string) $form
        ->field($model, 'name', $o)
        ->input('email', ['required' => true]),
);

@mspirkov
Copy link
Copy Markdown
Contributor Author

Good idea. I'll fix the added tests now.

Copy link
Copy Markdown
Member

@Arhell Arhell left a comment

Choose a reason for hiding this comment

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

lgtm

@samdark samdark merged commit dc65bd3 into yiisoft:master Sep 27, 2025
91 of 92 checks passed
@samdark
Copy link
Copy Markdown
Member

samdark commented Sep 27, 2025

Thank you!

@samdark samdark added this to the 2.0.54 milestone Sep 27, 2025
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

Successfully merging this pull request may close these issues.

5 participants