Closed 0xMMMMMM closed 2 years ago
@malikfalasifa Could you please include here in the comment example name of duplicate subdistrict name that could lead this issue.
@sofyansitorus Subdistrict name Depok exists in Sleman, Yogyakarta but it will return Depok from Kabupaten Cirebon because the one from Cirebon appeared first. This commit will modify the function so the associated city will be searched too. But of course, please check it.
I've encountered a problem when checking the fee from the courier but getting different result from the official courier website. Because the plugin sending different origin.
@malikfalasifa Your PR has been published in Woongkir version 1.3.6. Thank you very much for your contribution.
This will fix the district origin when there are same district name but having different city. Before this fix, the origin district returns the first result from
array_intersect_assoc
whether it was from the right city or not.