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

Change to Magento\Customer\Block\Widget\Dob new version #518

Closed
sepple opened this issue Feb 28, 2014 · 3 comments
Closed

Change to Magento\Customer\Block\Widget\Dob new version #518

sepple opened this issue Feb 28, 2014 · 3 comments
Assignees

Comments

@sepple
Copy link

sepple commented Feb 28, 2014

See #492

Magento\Customer\Block\Widget\Dob

public function getSortedDateInputs()
{
...
}

The function does not support keeping format characters provided by the locale date format string. In themes altering the form to use date input with an inline style like I do (http://mdev.sites.freelancer-stuttgart.de/customer/account/create/) the stripping is not desired.

I see two possible modifications to get support for this:

a) Put an optional argument to the function:
public function getSortedDateInputs ($stripNonInputChars = true)
and modify mapping like
$mapping = array(
'/m{1,5}/i' => '%1$s',
'/e{1,5}/i' => '%2$s',
'/d{1,5}/i' => '%2$s',
'/y{1,5}/i' => '%3$s',
);
if ($stripNonInputChars)
$mapping[] = '/[^medy]/i' => '\1';

b) Introduce a new function called getFormattedDateInputs or anything like this. Just the same function as getSortedDateInputs but without the mapping '/[^medy]/i' => '\1'

@verklov verklov self-assigned this Feb 28, 2014
@verklov
Copy link
Contributor

verklov commented Feb 28, 2014

@sepple, I will ask the team to look at this new issue you reported. We will update you once the team completes investigation. Thank you for reporting this!

@sepple
Copy link
Author

sepple commented Mar 2, 2014

There is wrong code in the suggestion. Sorry. Should be
if ($stripNonInputChars)
$mapping['/[^medy]/i'] = '\1';

magento-team added a commit that referenced this issue Apr 11, 2014
* Framework Improvements:
  * Eliminated the StoreConfig class, and ability to work with Configuration through the Store object. Scope Config was introduced instead.
  * Fixed performance degradation caused by DI argument processors
  * Covered Magento library components with unit tests:
     * Magento/App/Request
     * Magento/App/Resource directory and Magento/App/Resource.php
     * Magento/App/Response
     * Magento/App/Route
     * Magento/App/Router
     * Magento/App/Http.php
     * Magento/Translate.php
  * Improved the Web API framework based on Customer Service
  * Updated the API Service Exception Handling
  * Changed the conventional notation of Vendor name in theme path: from `app/design/<area>/<vendor>_<theme>` to `app/design/<area>/<vendor>/<theme>`
  * Renamed the 3DSecure library to CardinalCommerce, and removed the unused flex library
* Themes update:
  * Updated the look&feel of the Admin theme
* Modularity improvements:
  * Introduced a new Store module. Moved all Store related logic from Magento_Core to Magento_Store
  * Moved the library part of the Config component from the Magento_Core module to the library
  * Moved the Session related logic from the Magento_Core module to the library
  * Moved the abstract logic related to Magento "Module" from Magento_Core to the library
  * Moved the form key related functionality to the library
  * Introduced a new Magento_UrlRewrite module and moved related classes from Magento_Core to the new module
  * Moved the resource model to Magento_Install module
  * Eliminated the Core\Helper\Js class
  * Moved the Email related logic from Magento_Core module to Magento_Email module
  * Moved the Cache related logic from the Magento_Core module to the library
  * Resolved issues which appeared when an order had been placed before the Magento_Payment module was disabled
  * Eliminated Magento_Catalog dependency on Magento_Rating
  * Removed the Magento_Rating module, its logic moved to Magento_Review
  * Moved the View related components from Magento_Core to the Magento/View library
* Refactored the following modules to use Customer Service
  * Magento_Multishipping
  * Magento_Paypal
  * Magento_Log
  * Magento_RSS
  * Magento_Review
  * Magento_Wishlist
  * Magento_Weee
  * Magento_CatalogInventory
  * Magento_CatalogRule
  * Magento_SalesRule
* GitHub requests:
  * [#520] (#520) -- Fixed spelling in Magento\Payment\Model\Method\AbstractMethod
  * [#481] (#481) -- GD2 Adapter PHP memory_limit
  * [#516] (#516) -- Make Sure That save_before Event Is Dispatched
  * [#465] (#465) -- Absolute path is assembled incorrectly when merging js/css files
  * [#504] (#504) -- Renamed "contacts" module to "contact"
  * [#529] (#529) -- Fixed exception at admin dashboard
  * [#535] (#535) -- Fixed an issue during creating or editing product template
  * [#535] (#535) -- Fixed Typo in the module name
  * [#538] (#538) -- Fixed missing tax amount in the invoice
  * [#518] (#518) -- Change to Magento\Customer\Block\Widget\Dob new version
* Fixed bugs:
  * Fixed implementation issues with Cron task group threading
  * Fixed inability to place order during customer registration flow
  * Fixed an issue where after JS minification errors appeared when loading pages which contained minified JS
  * Fixed an issue where it was impossible for users with restricted permission to export certain entities
  * Fixed an issue where checkout was blocked by the "Please enter the State/Province" pop-up for customers that had saved addresses
  * Fixed an issue where a fatal error appeared when trying to check out the second time with OnePageCheckout
  * Fixed an issue where a fatal error appeared when trying to create an online invoice for an order placed with PayPal Express Checkout (Payment Action = Order)
  * Fixed an issue where the special price for a bundle product was calculated wrongly
  * Fixed an issue where a fatal error appeared when trying to create a shipment for an order if Magento was installed without the USPS module
  * Fixed an issue where the Lifetime Sales and Average Orders sections of the Admin Dashboard were missing
  * Fixed an issue where the active tab changed after changing the attribute set
  * Fixed an issue with incorrect order of product types in the Add Product menu in the backend
  * Fixed an issue with saving the tier price attribute
* JavaScript improvements:
  * Upgraded the frontend jQuery library to version 1.11
  * Upgraded the frontend jQuery UI library to version 1.10.4
  * Modified the loader widget to render content using handlebars
  * Added the 'use strict' mode to the accordion widget
  * Added the 'use strict' mode to the tab widget
@verklov
Copy link
Contributor

verklov commented Apr 11, 2014

@sepple, the team has fixed this issue. The code has just been released in dev73.

@verklov verklov closed this as completed Apr 11, 2014
magento-team pushed a commit that referenced this issue Aug 12, 2015
[DRAGONS] Functional tests&Bugfixes
okorshenko pushed a commit that referenced this issue Dec 14, 2016
…ETWO-59284-New

Fixed issue:
- MAGETWO-59284: There is no Scope Selector on Product Grid
magento-devops-reposync-svc pushed a commit that referenced this issue May 12, 2023
ACPT-1221: Fix Integration Tests for application-server PR
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

2 participants