| @@ -151,9 +151,9 @@ | ||
| 151 | 151 | if ($preserveSlug && isset($data['slug']) && !empty($data['slug'])) { |
| 152 | 152 | // Slug was manually edited - preserve it but ensure uniqueness |
| 153 | 153 | $data['slug'] = SlugHelper::generateUniqueFromDatabase( |
| 154 | 154 | $data['slug'], |
| 155 | - 'yatra_new_classifications', | |
| 155 | + 'yatra_classifications', | |
| 156 | 156 | 'slug', |
| 157 | 157 | $id // Exclude current record when checking uniqueness |
| 158 | 158 | ); |
| 159 | 159 | } elseif (!empty($data['name'])) { |
| @@ -159,9 +159,9 @@ | ||
| 159 | 159 | } elseif (!empty($data['name'])) { |
| 160 | 160 | // Auto-generate slug from name if name is provided and slug not manually edited |
| 161 | 161 | $data['slug'] = SlugHelper::generateUniqueFromDatabase( |
| 162 | 162 | $data['name'], |
| 163 | - 'yatra_new_classifications', | |
| 163 | + 'yatra_classifications', | |
| 164 | 164 | 'slug', |
| 165 | 165 | $id // Exclude current record when checking uniqueness |
| 166 | 166 | ); |
| 167 | 167 | } elseif (isset($data['slug'])) { |